package com.yqg.education.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * send_announce 实体类
 * @author 张芸博
 * @since 2025-04-10
 */
@Getter
@Setter
  @TableName("send_announce")
public class SendAnnounce implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      /**
     * 通知人
     */
      private Long userId;

      /**
     * 通知标题
     */
      private String title;

      /**
     * 通知内容
     */
      private String content;

      /**
       * 发布时间
       */
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
      private LocalDateTime sendTime;

      /**
       * 是否发布
       */
      private Integer isSend;

      /**
     * 创建时间
     */
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
      private LocalDateTime createTime;

      /**
     * 是否删除
     */
      private Integer isDelete;

    @TableField(exist = false)
    private String username;

}
